package com.costaccounting.feesys.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.costaccounting.common.annotation.Excel;
import com.costaccounting.common.core.domain.BaseEntity;

/**
 * 分类占比对象 zs_category_percentage
 * 
 * @author ruoyi
 * @date 2021-11-26
 */
public class ZsCategoryPercentage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;
    private Long itemId;
    /** 分类Id */
    @Excel(name = "分类Id")
    private Long categoryId;

    /** 费用类型 */
    @Excel(name = "费用类型")
    private String feeType;

    /** 费用分类(人材机) */
    @Excel(name = "费用分类(人材机)")
    private String feeCategory;

    /** 占比 */
    @Excel(name = "占比")
    private BigDecimal percentage;

    /** 是否预警 */
    @Excel(name = "是否预警")
    private String iswarn;

    /** 状态（0正常 1暂停） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=暂停")
    private String status;

    private BigDecimal amount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setFeeType(String feeType) 
    {
        this.feeType = feeType;
    }

    public String getFeeType() 
    {
        return feeType;
    }
    public void setFeeCategory(String feeCategory) 
    {
        this.feeCategory = feeCategory;
    }

    public String getFeeCategory() 
    {
        return feeCategory;
    }
    public void setPercentage(BigDecimal percentage) 
    {
        this.percentage = percentage;
    }

    public BigDecimal getPercentage() 
    {
        return percentage;
    }
    public void setIswarn(String iswarn) 
    {
        this.iswarn = iswarn;
    }

    public String getIswarn() 
    {
        return iswarn;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryId", getCategoryId())
            .append("feeType", getFeeType())
            .append("feeCategory", getFeeCategory())
            .append("percentage", getPercentage())
            .append("iswarn", getIswarn())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
